package com.usoft.thrift.monitor;

/**
 * 业务方法的执行信息
 * Created by xinxingegeya on 16/3/3.
 */
public class BizMethodInvokeInfo {

    private int totalCount;
    private int successCount;
    private int failureCount;
    private long successAverageTime;
    private long successMinTime;
    private long successMaxTime;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getSuccessCount() {
        return successCount;
    }

    public void setSuccessCount(int successCount) {
        this.successCount = successCount;
    }

    public int getFailureCount() {
        return failureCount;
    }

    public void setFailureCount(int failureCount) {
        this.failureCount = failureCount;
    }

    public long getSuccessAverageTime() {
        return successAverageTime;
    }

    public void setSuccessAverageTime(long successAverageTime) {
        this.successAverageTime = successAverageTime;
    }

    public long getSuccessMinTime() {
        return successMinTime;
    }

    public void setSuccessMinTime(long successMinTime) {
        this.successMinTime = successMinTime;
    }

    public long getSuccessMaxTime() {
        return successMaxTime;
    }

    public void setSuccessMaxTime(long successMaxTime) {
        this.successMaxTime = successMaxTime;
    }

    @Override
    public String toString() {
        return "BizMethodInvokeInfo{" + "totalCount=" + totalCount
            + ", successCount=" + successCount + ", failureCount="
            + failureCount + ", successAverageTime=" + successAverageTime
            + ", successMinTime=" + successMinTime + ", successMaxTime="
            + successMaxTime + '}';
    }
}
